package edu.dayu.factory;

public class ShapeFactory {
    private ShapeFactory(){}

    public static Shape getShape(String className){
        if (className.equals("square")){
            return new Square();
        }else if (className.equals("circle")){
            return new Circle();
        }else {
            return null;
        }
    }
}
